package com.ruoyi.db.model.param;

import cn.hutool.core.util.StrUtil;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;

@Data
public class SpecialDataParam extends BaseParam{

    private Long deptId;

    private Long costomId;

    private String startTime;

    private String endTime;

    private String costomType;

    private Long adminUserId;

    private SysUser sysUser;

    private String startOriginCreateTime;

    private String endOriginCreateTime;

    private String originCreateTime;

    private String mobile;

    private String feedbackInfo;

    private String channelCode;

    private String channelName;

    public String getStartOriginCreateTime(){
        if (StrUtil.isNotEmpty(originCreateTime)){
            String[] split = originCreateTime.split("~");
            this.startOriginCreateTime = split[0];
            return startOriginCreateTime;
        }
        return startOriginCreateTime;
    }

    public String getEndOriginCreateTime(){
        if (StrUtil.isNotEmpty(originCreateTime)){
            String[] split = originCreateTime.split("~");
            this.endOriginCreateTime = split[1];
            return endOriginCreateTime;
        }
        return endOriginCreateTime;
    }
}
